/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * formPiani.java
 *
 * Created on Nov 28, 2009, 11:02:23 AM
 */

package example;

/**
 *
 * @author keysman
 */
public class formPiani extends our.gui.ourForm {

    /** Creates new form formPiani */
    public formPiani(/*String strTitle, int X, int Y, int WIDTH, int HEIGHT,*/ java.awt.Frame parent, boolean modal) {
        super(/*strTitle, HEIGHT, WIDTH, */parent, modal);
        initComponents();
        // Compilare le due seguenti chiamante
        //setDB_Sort_Fields(""); // Campo/i su cui è ordinato lo scroll dei records (ad. es. cognome, nome)
        setDB_Table("PIANI");       // Tabella del DB alla quale è associata la form
        setDB_txtId_Field("ID");    // Il campo del db di tipo autoinc (generalmente chiamato id) che verrà inserito in txtID (hidden)
        setRealDelete(false); // Settare a true se il record deve essere eliminato fisicamente dalla tabella
        setPrintForm("example.print.printPiani");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        ourPanel1 = new our.gui.ourPanel();
        ourPanel2 = new our.gui.ourPanel();
        ourLabel1 = new our.gui.ourLabel();
        txtNome = new our.gui.ourTextField();
        ourLabel2 = new our.gui.ourLabel();
        txtDescr = new our.gui.ourTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        getContentPane().setLayout(null);

        ourPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        ourPanel1.setLayout(null);

        ourPanel2.setKeyFrame(true);
        ourPanel2.setOpaque(false);
        ourPanel2.setLayout(null);

        ourLabel1.setText("Nome");
        ourPanel2.add(ourLabel1);
        ourLabel1.setBounds(10, 10, 34, 20);

        txtNome.setCharsInputAllowed(5);
        txtNome.setFieldOnDB("DESC");
        txtNome.setHelpMsg("Descrizione mnemonica del piano");
        txtNome.setKeyFrameFirstField(true);
        txtNome.setWithStar(true);
        txtNome.setZoomOnClass("example.zoom.zoomPiani");
        ourPanel2.add(txtNome);
        txtNome.setBounds(90, 10, 170, 20);

        ourPanel1.add(ourPanel2);
        ourPanel2.setBounds(0, 0, 480, 30);

        ourLabel2.setText("Descrizione");
        ourPanel1.add(ourLabel2);
        ourLabel2.setBounds(10, 40, 67, 20);

        txtDescr.setCharsInputAllowed(2);
        txtDescr.setFieldOnDB("COMM");
        txtDescr.setFirstFieldOutOfKeyFrame(true);
        txtDescr.setHelpMsg("Descrizione aggiuntiva del piano");
        txtDescr.setMaxTextLength(200);
        ourPanel1.add(txtDescr);
        txtDescr.setBounds(90, 40, 380, 20);

        getContentPane().add(ourPanel1);
        ourPanel1.setBounds(5, 40, 480, 70);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    public void INSERT() throws java.sql.SQLException { }

    public void DELETE() throws java.sql.SQLException { }

    public void UPDATE() throws java.sql.SQLException { }

    public void GOLAST() { }

    public void GOFIRST() { }

    public void GONEXT() { }

    public void GOPREV() { }

    public void GOTO() { }

    public void GOTO(Object[] KEY) { }

    public void CALLZOOM() { }

    public Object GETFIELDSVALUE() { return null; }

    public void SETFIELDSVALUE() { }

    public boolean BEFOREWRITING(boolean bShowTheMessage) { return true; }

    public void RESET() { }

    public void ENABLE(boolean bEnable) { }

    public String USER_FOUND_KEY() { return null; }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private our.gui.ourLabel ourLabel1;
    private our.gui.ourLabel ourLabel2;
    private our.gui.ourPanel ourPanel1;
    private our.gui.ourPanel ourPanel2;
    private our.gui.ourTextField txtDescr;
    private our.gui.ourTextField txtNome;
    // End of variables declaration//GEN-END:variables

}
